package com.hmc.modules.material.service.tqmtmvb.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hmc.common.service.impl.CrudServiceImpl;
import com.hmc.common.constant.Constant;
import com.hmc.modules.material.dao.tqmtmvb.TqmtmvbDao;
import com.hmc.modules.material.dto.tqmtmvb.TqmtmvbDTO;
import com.hmc.modules.material.entity.tqmtmvb.TqmtmvbEntity;
import com.hmc.modules.material.service.tqmtmvb.TqmtmvbService;
import com.hmc.modules.security.user.SecurityUser;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 试验标准表_抗冲击
 *
 * @author hmc wengxiulinluman@qq.com
 * @since 3.0 2023-12-14
 */
@Service
public class TqmtmvbServiceImpl extends CrudServiceImpl<TqmtmvbDao, TqmtmvbEntity, TqmtmvbDTO> implements TqmtmvbService {

    @Override
    public QueryWrapper<TqmtmvbEntity> getWrapper(Map<String, Object> params){
        QueryWrapper<TqmtmvbEntity> wrapper = new QueryWrapper<>();

        String id = (String)params.get("id");
        wrapper.eq(StringUtils.isNotBlank(id), "ID", id);

        return wrapper;
    }


}